﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class GianHangDTO
    {
        #region 1   -   Attributes 

        private int _iD;

        private string _tenGianHang;
  
        private int _chuGianHang;

        private bool _tinhTrang;

        private string _thongTinTrinhBay;

        private int _soLuongTruyCap;

        private DateTime _ngayMoGianHang;

        private int _soLuongSanPham;

        private int _doanhSoBanDuoc;

        private string _diaChi;

        private string _soDienThoai;

        #endregion

        #region 2   -   Properties

        public int ID
        {
            get { return _iD; }
            set { _iD = value; }
        }

        public string TenGianHang
        {
            get { return _tenGianHang; }
            set { _tenGianHang = value; }
        }

        public int ChuGianHang
        {
            get { return _chuGianHang; }
            set { _chuGianHang = value; }
        }

        public bool TinhTrang
        {
            get { return _tinhTrang; }
            set { _tinhTrang = value; }
        }

        public string ThongTinTrinhBay
        {
            get { return _thongTinTrinhBay; }
            set { _thongTinTrinhBay = value; }
        }

        public int SoLuongTruyCap
        {
            get { return _soLuongTruyCap; }
            set { _soLuongTruyCap = value; }
        }
        
        public DateTime NgayMoGianHang
        {
            get { return _ngayMoGianHang; }
            set { _ngayMoGianHang = value; }
        }
        
        public int SoLuongSanPham
        {
            get { return _soLuongSanPham; }
            set { _soLuongSanPham = value; }
        }

        public int DoanhSoBanDuoc
        {
            get { return _doanhSoBanDuoc; }
            set { _doanhSoBanDuoc = value; }
        }

        public string DiaChi
        {
            get { return _diaChi; }
            set { _diaChi = value; }
        }

        public string SoDienThoai
        {
            get { return _soDienThoai; }
            set { _soDienThoai = value; }
        }

        #endregion

        #region 3   -   Constructors

        public GianHangDTO(string tengianhanh, int chugianhang, bool tinhtrang,
            string thongtintrinhbay, int soluongtruycap, DateTime ngaymogianhang,
            int soluongsanpham, int doanhsobanduoc, string diachi, string sodienthoai)

        {
            TenGianHang = tengianhanh;
            ChuGianHang = chugianhang;
            TinhTrang = tinhtrang;
            ThongTinTrinhBay = thongtintrinhbay;
            SoLuongTruyCap = soluongtruycap;
            NgayMoGianHang = ngaymogianhang;
            SoLuongSanPham = soluongsanpham;
            DoanhSoBanDuoc = doanhsobanduoc;
            DiaChi = diachi;
            SoDienThoai = sodienthoai;
        }
        #endregion
    }
}
